
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head> 
  <base href="<%=basePath%>">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <title>订单管理</title>
	<link rel="stylesheet" href="../../../files/css/layui.css" media="all">
  <style>
    body{margin: 10px;}
    .demo-carousel{height: 300px; line-height: 300px; text-align: center;}
  </style>
</head>
<body>
<table class="layui-hide" id="test" lay-filter="demo"></table>
<script src="../../../files/js/layui.js"></script> 
<script src="../../../commom/js/base.js"></script>
<script>
 
layui.use(['laydate', 'laypage', 'layer', 'table', 'upload', 'element'], function(){
  var laydate = layui.laydate //日期
  layer = layui.layer //弹层
  ,table = layui.table //表格
  ,upload = layui.upload //上传
  ,element = layui.element; //元素操作
  //执行一个 table 实例
  table.render({
     elem: '#test'
    ,height: 474
    ,url: '../orderCare/findById.action' //数据接口
    ,page: true //开启分页
    ,method:'post'
    ,cols: [[ //表头
       {type:'checkbox', fixed: 'left'}
      ,{field: 'shopName', title: '店铺名称', width:120, fixed: 'left'}
      ,{field: 'menuName', title: '菜品名称', width:120,align:'center'}
      ,{field: 'care_time', title: '下单时间', width: 170,align:'center'} 
      ,{field: 'care_num', title: '数量', width: 70,align:'center',}
      ,{field: 'care_money', title: '金额', width: 100,align:'center',} 
      ,{field: 'sort', title: '排序', width: 170,align:'center', toolbar: '#barDemo'}
    ]]
  });
});
  //是否有效
</script>
</body>
</html>   